home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 52
/
Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso
/
Aminet
/
comm
/
irc
/
epic4-mos.lha
/
share
/
epic
/
script
/
sdiff
< prev
next >
Wrap
Text File
|
2002-09-18
|
393b
|
22 lines
# Here's the plan
#
# $sdiff() -- convert bytes to kilobytes
# $sdiff2() -- convert bytes to megabytes
#
alias sdiff {
^set floating_point on
^local kb $trunc($1 ${[$0] / 1024})
@ function_return = kb ## [K]
^set floating_point off
}
alias sdiff2 {
^set floating_point on
^local mb $trunc($1 ${[$0] / (1024 * 1024)})
@ function_return = mb ## [mb]
^set floating_point off
}
#hop'97